package com.tuo51.bizgame.doctorcat.domain;

import com.tuo51.foudation.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

@Data
@Entity
@Table(name = "dc_task")
@EqualsAndHashCode(callSuper = true)
public class Task extends Domain {

    @Column(columnDefinition = "varchar(128) COMMENT '图标' ")
    private String icon;

    @Column(columnDefinition = "int default 0 COMMENT '可获取积分'")
    private Integer score;

    @Column(columnDefinition = "int default 0 COMMENT '任务等级'")
    private Integer level;

    @Column(columnDefinition = "varchar(128) COMMENT '任务名字' ")
    private String name;

    @Column(columnDefinition = "varchar(128) COMMENT '任务名字' ")
    private String subtitle;

    @Column(columnDefinition = "int default 0 COMMENT '可获取次数'")
    private Integer quota;

    @Transient
    private Integer progress;
}
